using Microsoft.Extensions.DependencyInjection;
using Zhaoxi.Zhihu.HotService.Core;
using Zhaoxi.Zhihu.HotService.Data;

namespace Zhaoxi.Zhihu.HotService;

public static class DependencyInjection
{
    public static IServiceCollection AddHotService(this IServiceCollection services)
    {
        services.AddSingleton<QuestionStatManager>();
        services.AddTransient<QuestionStatQuery>();
        services.AddTransient<HotRankManager>();
        
        return services;
    }
}